#ifndef __DEV_MANAGE_H__
#define __DEV_MANAGE_H__

#include "eeprom.h"

#include <stdint.h>

#define NODE_ID_FLASH (0X0001C000)

#pragma pack(push, 1) // 设置1字节对齐
typedef struct
{
    float a;
    float b;
    float c;
} Coefficient_t;

typedef struct
{
    uint16_t      resistanceThreshold;
    Coefficient_t coefficient[2];
} Res2Press_Conversion_t;

#pragma pack(pop) // 恢复默认对齐

uint8_t Dev_ReadNodeID(uint8_t *dat);
uint8_t Dev_WriteNodeID(uint8_t id);
uint8_t Dev_GetNodeID(void);
uint8_t Dev_DataInit(void);
#endif
